#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(){
	
	int err = 0;
	pid_t pid = 0;
	puts("Begin!");
	fflush(NULL);
	pid = fork();      //创建子进程
	if(pid < 0){
	}
	else if (pid == 0){
		err = execl("/bin/date","date","+%s",NULL);  //子进程换内容，执行date
		perror("execl()");
		eixt(1)
	}
	else{
		wait(NULL);        //等待子进程结束，进行收尸
	}

	puts("End!");

	exit(0);
}
